# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libfaketime
pkgver=0.9.8
pkgrel=0
pkgdesc="libfaketime modifies the system time for a single application"
url="https://github.com/wolfcw/libfaketime"
arch="all"
makedepends="coreutils"
license="GPL-2.0-or-later"
options="!check" # https://github.com/wolfcw/libfaketime/issues/259
source="$pkgname-$pkgver.tar.gz::https://github.com/wolfcw/libfaketime/archive/v0.9.8.tar.gz"

build() {
	make
}

check() {
	make -j1 test
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="87081024cab10462d4ed4d4ad9c3c56ab40fee3300d3a9ff180a4d96d418b3f25d80d7d5ad0a1af2fb87204f01a506d9fa273def7a8f9cc3be4cc0e9fef42aed  libfaketime-0.9.8.tar.gz"
